import requests from '@/utlis/requests.js'

//获取全部分类
export const getAllClass = () => requests.get('/home/category/head')

//获取轮播图
export const getCarouselImg = (distributionSite = 1) =>
  requests.get('/home/banner', {
    params: {
      distributionSite
    }
  })

//获取新鲜好物
export const getFreshItem = () => requests.get('/home/new')

//获取人气推荐
export const getHotItem = () => requests.get('/home/hot')

//热门品牌
export const getBrand = () => requests.get('/home/brand')
